package fr.cdj.thebox.client.gin;

import net.customware.gwt.presenter.client.EventBus;

import com.google.gwt.core.shared.GWT;
import com.google.gwt.inject.client.GinModules;
import com.google.gwt.inject.client.Ginjector;

import fr.cdj.thebox.client.app.TheboxPresenter;

@GinModules(TheboxGModule.class)
public interface TheboxGInjector extends Ginjector {

	public static class Util {
		private static TheboxGInjector instance;
		
		public static TheboxGInjector getInstance() {
			if(instance == null) {
				instance = GWT.create(TheboxGInjector.class);
			}
			return instance;
		}
	}
	
	EventBus getEventBus();
	
	TheboxPresenter getMainPresenter();
	
}
